<?php 
namespace JCAT\PDRL\MultiTask\Task ;

use JCAT\PDRL\MultiTask;

class PHPProcess extends Process
{
    /**
     * Description
     *
     * @access	public
     * @static
     * @return	PDRProcess
     */
    static public function CreateProcess(MultiTask\StreamTasks  $aTasks,$sScript,$sParams='',$sPipeWay='rw')
    {
        $sPHPPath = pdr_get_php_path() ;
        if(!$sPHPPath)
        {
            return null ;
        }
        $sCmd = "\"{$sPHPPath}\" -f {$sScript} {$sParams}" ;
        return parent::CreateProcess($aTasks,$sCmd,$sPipeWay) ;
    }
    
}

?>